package com.neiquan.backstage.pub.bsc.dao.po;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.neiquan.backstage.core.PO;
/**
 *租用申请表
 * @author linjiang
 */
@Entity
@Table
public class Lease extends PO{
	public static final Integer new_Invalid = 2;
	public static final Integer new_yes = 1;
	public static final Integer new_no = 0;
	public static final Integer status_wait = 0;
	public static final Integer status_pass = 1;
	public static final Integer status_reject = 2;
	public static final Integer status_change_wait = 3;
	public static final Integer status_change_reject = 4;
	public static final Integer apply_scene=1;
	public static final Integer apply_meeting=2;
	public static final Integer apply_lease=3;
	
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(unique = true, nullable = false)
	private Integer leaseId;			//租房id
	private Integer entrepreneurId;		//公司
	private Integer status;				//审核状态0为待审核 1通过 2未通过 3为待变更 4为变更失败
	private Long stratTime;				//租期开始时间
	private Long endTime;				//租期结束时间
	private Integer monthNumber;		//月份数
	private double totalPrice;			//应该缴纳总钱数
	private double	sumRental; 			//每月交租总和
	private	Long 	payEndTime;			//每次缴费的截至日期
	private Integer paymentId;			//交费表
	private String changeRemark;		//更变工位备注
	private String stationRemark;		//工位申请备注
	private String momentStationIds;	//临时的工位集合
	private String changeStationIds;	//临时变更
	private Integer newlyStuats;		//是否是新增状态0不是新增 1新增
	private Integer memberId;			//孵化器主键
	private Integer userId;				//用户 外键
	private Long dtCreat;				//申请时间
	private Integer applyType;			//申请分类
	private String unquieId;			//区分唯一值得
	
//	序列化和设定主键
	@Override
	public Serializable getId() {
		// TODO Auto-generated method stub
		return leaseId;
	}

	public Integer getLeaseId() {
		return leaseId;
	}

	public void setLeaseId(Integer leaseId) {
		this.leaseId = leaseId;
	}

	public Integer getEntrepreneurId() {
		return entrepreneurId;
	}

	public void setEntrepreneurId(Integer entrepreneurId) {
		this.entrepreneurId = entrepreneurId;
	}

	
	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Long getStratTime() {
		return stratTime;
	}

	public void setStratTime(Long stratTime) {
		this.stratTime = stratTime;
	}

	public Long getEndTime() {
		return endTime;
	}

	public void setEndTime(Long endTime) {
		this.endTime = endTime;
	}

	public double getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(double totalPrice) {
		this.totalPrice = totalPrice;
	}

	public double getSumRental() {
		return sumRental;
	}

	public void setSumRental(double sumRental) {
		this.sumRental = sumRental;
	}

	
	public Integer getPaymentId() {
		return paymentId;
	}

	public void setPaymentId(Integer paymentId) {
		this.paymentId = paymentId;
	}

	public String getChangeRemark() {
		return changeRemark;
	}

	public void setChangeRemark(String changeRemark) {
		this.changeRemark = changeRemark;
	}

	public String getStationRemark() {
		return stationRemark;
	}

	public void setStationRemark(String stationRemark) {
		this.stationRemark = stationRemark;
	}

	public Integer getMonthNumber() {
		return monthNumber;
	}

	public void setMonthNumber(Integer monthNumber) {
		this.monthNumber = monthNumber;
	}

	public String getMomentStationIds() {
		return momentStationIds;
	}

	public void setMomentStationIds(String momentStationIds) {
		this.momentStationIds = momentStationIds;
	}

	public String getChangeStationIds() {
		return changeStationIds;
	}

	public void setChangeStationIds(String changeStationIds) {
		this.changeStationIds = changeStationIds;
	}

	public Integer getMemberId() {
		return memberId;
	}

	public void setMemberId(Integer memberId) {
		this.memberId = memberId;
	}

	public Integer getNewlyStuats() {
		return newlyStuats;
	}

	public void setNewlyStuats(Integer newlyStuats) {
		this.newlyStuats = newlyStuats;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Long getDtCreat() {
		return dtCreat;
	}

	public void setDtCreat(Long dtCreat) {
		this.dtCreat = dtCreat;
	}

	public Integer getApplyType() {
		return applyType;
	}

	public void setApplyType(Integer applyType) {
		this.applyType = applyType;
	}

	public Long getPayEndTime() {
		return payEndTime;
	}

	public void setPayEndTime(Long payEndTime) {
		this.payEndTime = payEndTime;
	}

	public String getUnquieId() {
		return unquieId;
	}

	public void setUnquieId(String unquieId) {
		this.unquieId = unquieId;
	}
	
	
	
}
